package org.jiajie.designpatterndemo.ocp.segmentfault;

/**
 * Mac
 * @author jay
 */
public class MacComputer implements Computer {
    private double price;
    private String color;
    private int memory;
    private float size;

    public MacComputer(double price, String color, int memory, float size) {
        this.price = price;
        this.color = color;
        this.memory = memory;
        this.size = size;
    }

    @Override
    public double getPrice() {
        return this.price;
    }

    @Override
    public String getColor() {
        return this.color;
    }

    @Override
    public int getMemory() {
        return this.memory;
    }

    @Override
    public float getSize() {
        return this.size;
    }
}
